/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rentalmobil.testing;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import rentalmobil.entity.sewa_mobil;

/**
 *
 * @author Henfryandie
 */
public class viewDataMobilTesting {
    public static void main(String[] args) throws SQLException {
        sewa_mobil smo = new sewa_mobil();
        List<sewa_mobil> listView = new ArrayList<sewa_mobil>();
        listView = smo.viewSewaMobil();
        System.out.println("Jumlah data : "+listView.size());
        for (int i = 0; i < listView.size(); i++) {
            System.out.println("Nama Penyewa : "+listView.get(i).getNamaPenyewa());

        }
    }
}
